<!DOCTYPE html>
<html>
    <head>
		<?php require FCPATH . 'application/views/header.php'; ?>

		<?php if ($g_lang == 'zh'): ?>
			<style type="text/css">
				div#header ul#main-navigation li a{font-size: 15px;}
			</style>
		<?php endif; ?>
    </head>

    <body>
        <div id="z-body-container">
			<div id="header">

				<ul id="main-navigation">
					<li class="first"><a href="/"><img src="/assets/img/frontend/main-navigation-home.png" alt="ALSA"/></a></li>
					<li class="about">
						<a href="/about"><?php echo $this->lang->line('about'); ?></a>
						<ul>
							<li><a href="/about/index/1"><?php echo $this->lang->line('aim_and_purpose'); ?></a></li>
							<!--<li><a href="/about/index/2"><?php echo $this->lang->line('excellence_and_awards'); ?></a></li>-->
							<li><a href="/about/index/3"><?php echo $this->lang->line('history'); ?></a></li>
							<li>
								<a href="javascript:void(0);"><?php echo $this->lang->line('ressource'); ?></a>
								<ul>
									<li><a href="/employee"><?php echo $this->lang->line('people'); ?></a></li>
									<li><a href="/about/index/4"><?php echo $this->lang->line('infrastructures'); ?></a></li>
								</ul>
							</li>
							<!--<li><a href="/about/index/5"><?php echo $this->lang->line('location'); ?></a></li>-->
						</ul>
					</li>
					<li class="services">
						<a href="/service"><?php echo $this->lang->line('services'); ?></a>
						<ul>
							<li>
								<a href="javascript:void(0);"><?php echo $this->lang->line('practice_field');?></a>
								<ul>
									<li><a href="/service/index/1"><?php echo $this->lang->line('urban_planning');?></a></li>
									<li><a href="/service/index/2"><?php echo $this->lang->line('architecture_desion');?></a></li>
									<li><a href="/service/index/3"><?php echo $this->lang->line('landscape_design');?></a></li>
									<li><a href="/service/index/4"><?php echo $this->lang->line('tourism_and_resorts');?></a></li>
									<li><a href="/service/index/5"><?php echo $this->lang->line('consulting');?></a></li>
								</ul>
							</li>
							<li>
								<a href="javascript:void(0);"><?php echo $this->lang->line('market_sector');?></a>
								<ul>
									<li><a href="/service/index/6"><?php echo $this->lang->line('real_estate');?></a></li>
									<li><a href="/service/index/7"><?php echo $this->lang->line('governement');?></a></li>
									<li><a href="/service/index/8"><?php echo $this->lang->line('commercial');?></a></li>
								</ul>
							</li>
						</ul>
					</li>
					<li class="projects">
						<a href="/project"><?php echo $this->lang->line('projects'); ?></a>
						<ul>
							<li><a href="/project/index/1"><?php echo $this->lang->line('urban_planning'); ?></a></li>
							<li><a href="/project/index/2"><?php echo $this->lang->line('tourism_resorts_and_commercial'); ?></a></li>
							<li><a href="/project/index/3"><?php echo $this->lang->line('landscape_design'); ?></a></li>
						</ul>
					</li>
					<li class="news">
						<a href="/news"><?php echo $this->lang->line('news'); ?></a>
						<ul>
							<?php foreach($newsCategories as $newsCategory):?>
							<li><a href="/news/index/<?php echo $newsCategory->id; ?>"><?php echo $newsCategory->name; ?></a></li>
							<?php endforeach; ?>
						</ul>
					</li>
					<li class="contact">
						<a href="/contact"><?php echo $this->lang->line('contacts'); ?></a>
						<ul>
							<li><a href="/contact/index"><?php echo $this->lang->line('location_map'); ?></a></li>
							<li><a href="/news/index/3"><?php echo $this->lang->line('job_offer'); ?></a></li>
						</ul>
					</li>
					<li class="language">
						<a href="/frontend/language/en">
							<!--<img src="/assets/img/frontend/language-french.jpg" alt="法文"/>-->En
						</a>
					</li>
					<li class="language">
						<a href="/frontend/language/zh">
							<!--<img src="/assets/img/frontend/language-chinese.jpg" alt="中文"/>-->Cn
						</a>
					</li>
					<li class="language">
						<a href="/frontend/language/fr">
							<!--<img src="/assets/img/frontend/language-english.jpg" alt="英文"/>-->Fr
						</a>
					</li>
					<li class="search">
						<form action="/search/index" method="get">
							<input type="text" name="keyword" class="text" value="<?php echo $this->lang->line('search'); ?>"/>
							<input type="submit" name="submit" class="submit" value="GO"/>
						</form>
					</li>
				</ul>
			</div>


			<?php require file_exists($path = FCPATH . "application/views/frontend/{$l_template}.php") ? $path : 'error.php'; ?>


			<div id="footer">
				<h2>
					<img src="/assets/img/frontend/layout-footer.png" alt="ALSA"/>
				</h2>
				<div class="copyright">
					Copyright &COPY; ALSA, All Rights Reserved
				</div>
			</div>

			<a href="javascript:void(0);" class="window-scroll-top">TOP</a>
        </div>

		<?php if (count($l_javascript_variables)): ?>
			<script type="text/javascript">
	<?php foreach ($l_javascript_variables as $key => $value): ?>
		<?php echo "window.{$key} = {$value};\n"; ?>
	<?php endforeach; ?>
			</script>
		<?php endif; ?>
		<?php if (count($l_javascripts)): ?>
			<?php foreach ($l_javascripts as $js): ?>
				<?php if (preg_match("/^http:\/\//", $js)): ?>
					<script type="text/javascript" rel="" src="<?php echo $js; ?>.js"></script>
				<?php else: ?>
					<script type="text/javascript" rel="" src="/assets/js/<?php echo $js; ?>.js"></script>
				<?php endif; ?>
			<?php endforeach; ?>
		<?php endif; ?>
    </body>
</html>
